package com.test;

/**
 * @author lmc
 *
 */
public class TestDemo {

	public static void main(String[] args) {
		int lineMaxLen =11;
		for (int i = 0; i < lineMaxLen; i++) {
			int bu = 0;
			if (i <= lineMaxLen / 2) {
				bu = lineMaxLen - (i * 2) - 1;
			} else {
				int aa = i % (lineMaxLen / 2);
				if (aa == 0)
					aa = lineMaxLen / 2;
				bu = aa * 2;
			}
			for (int j = 0; j < lineMaxLen; j++) {
				if (j != (bu / 2) + 1)
					System.out.print(" ");
				else {
					int temp = lineMaxLen - bu;
					for (int j2 = 0; j2 < temp; j2++) {
						System.out.print("*");
					}
				}
			}
			System.out.println();
		}
	}

}
